package com.meiyou.controller;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.meiyou.pojo.MeiyouZfb;
import com.meiyou.service.ZfbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@Api(value = "美游app控制器", tags = { "所有api接口" })
public class ZfbController {
	@Resource
	private ZfbService zfbServiceImpl;

	@RequestMapping(value = "insZfb", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "新增支付宝信息")
	public int insZfb(MeiyouZfb meiyouZfb) {
		return zfbServiceImpl.insZfb(meiyouZfb);
	}

	@RequestMapping(value = "selZfb", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "根据账户名显示支付宝信息")
	public List<MeiyouZfb> showZfb(String zUCount) {
		return zfbServiceImpl.selZfb(zUCount);
	}


}
